var verify_activeDiscount_retailStartDate_baseMsg = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_activeDiscount_retailStartDate"}');

if (active_discount == 1) {
    var flag = false;
    if (!isNull(retail_start_date)) {
        var today = getNewDate(new Date());

        var start = getNewDate(new Date(retail_start_date));

        var result = compareTimes(start, today);

        if (result <= 0) {
            flag = true;
        }
    }

    if (flag) {
        verify_activeDiscount_retailStartDate_baseMsg.CODE = 2;
        verify_activeDiscount_retailStartDate_baseMsg.ACTION = 'error';
        verify_activeDiscount_retailStartDate_baseMsg.MSG = '有补差价格生效日期必须晚于今天';
    }
}



JSON.stringify(verify_activeDiscount_retailStartDate_baseMsg);